#ifndef LRESITEMWIDGET_H_
#define LRESITEMWIDGET_H_

#include <MAUI/Label.h>
#include <MAUtil/Environment.h>

using namespace MAUI;
using namespace MAUtil;

class LRESItemWidget : public Widget, public PointerListener
{
	public:
		LRESItemWidget(int x, int y, int height, int width, Widget* parent);
		~LRESItemWidget();

		void setCompanyFont(Font* font);
		void setDrawDateFont(Font* font);

		void setCompanyName(String& text);
		void setDrawDate(String& text);
		void setId(String& text);
		void setSmsCnt(String& text);
		void setShortCode(String& text);
		void setResult(String& text);
		void setIsToday(String& text);
		void setIsOod(String& text);

		const String& getCompanyName();
		const String& getDrawDate();
		String& getId();
		String& getSmsCnt();
		String& getShortCode();
		String& getResult();
		String& getIsToday();
		String& getIsOod();

		//PointerListener
		void pointerPressEvent(MAPoint2d p);
		void pointerMoveEvent(MAPoint2d p);
		void pointerReleaseEvent(MAPoint2d p);

		void setSelected(bool selected = true);

		//Widget requirement
		void drawWidget();

	private:
		Label* mCompanyName;
		Label* mDrawDate;

		String mId;
		String mSmscnt;
		String mShortcode;
		String mResult;
		String mIstoday;
		String mIsood;

		bool mListening;
};


#endif /* LRESITEMWIDGET_H_ */
